package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 860620068
 * @Date 2021/5/26 :14:58
 * @desceiption:
 */
@FeignClient(value = "gulimall-seckill", fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
    /**
     * 根据skuId查询商品是否参加秒杀活动
     *
     * @param skkuId
     * @return
     */
    @GetMapping(value = "/sku/seckill/{skuId}")
    R getSkuSecKillInfo(@PathVariable("skuId") Long skkuId);
}
